package com.youyiwen.dto;

import lombok.Data;

/**
 * @Author: zhaoyang
 * @Date: 2021/03/27
 */
@Data
public class ResultDTO {
    private String message;
    private Integer code;

    public static ResultDTO error(Integer code,String message){
        ResultDTO resultDTO = new ResultDTO();
        resultDTO.setCode(code);
        resultDTO.setMessage(message);
        return resultDTO;
    }
}
